package com.db.person.mapper;

import com.db.person.bean.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {

    public List<Employee> getEmployeesAndUserIdIsNull();

    public void updateUserId(@Param("user_id") Integer user_id, @Param("emp_id") Integer emp_id);

    public List<Employee> getAll();

    public void insert(Employee employee);

    public Employee getById(Integer id);

    public void update(Employee employee);
}
